package newetvsdexport;

import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.TabFolder;
import org.eclipse.swt.widgets.TabItem;
import org.eclipse.ui.part.ViewPart;

import com.ce.wnd.ExportWnd;
import com.ce.wnd.TestStudyWnd;
import com.ce.wnd.TestWnd;

public class View extends ViewPart {
	public static final String ID = "NewEtvSDExport.view";




	/**
	 * This is a callback that will allow us to create the viewer and initialize
	 * it.
	 */
	public void createPartControl(Composite parent) {
		final TabFolder mainTab = new TabFolder(parent, SWT.NONE);

		final TabItem tabStudy = new TabItem(mainTab, SWT.NONE);
		tabStudy.setText("Study");
		

		final TestStudyWnd compositeStudy = new TestStudyWnd(mainTab, SWT.NONE);
		tabStudy.setControl(compositeStudy);

		final TabItem exportTabItem = new TabItem(mainTab, SWT.NONE);
		exportTabItem.setText("Export");

		final ExportWnd compositeExp = new ExportWnd(mainTab, SWT.NONE);
		exportTabItem.setControl(compositeExp);

		final TabItem tabTest = new TabItem(mainTab, SWT.NONE);
		tabTest.setText("Test");

		final TestWnd compositeTest = new TestWnd(mainTab, SWT.NONE);
		tabTest.setControl(compositeTest);
		initializeToolBar();
	}

	/**
	 * Passing the focus request to the viewer's control.
	 */
	public void setFocus() {
	}
	private void initializeToolBar() {
		IToolBarManager toolBarManager = getViewSite().getActionBars().getToolBarManager();
	}
}